import requestMeeting, { request } from '@/plugins/axios'
import { FetchResQuality, FetchQualityItem, QualityRequestParams } from './interface'
/** 获取检测记录 */
export const fetchGetQuality = async (meetingMoid: string, params: QualityRequestParams) =>
	request<FetchResQuality<FetchQualityItem>>({
		url: `/api/inner/ops/diagnose/conf/${meetingMoid}/all/`,
		method: 'get',
		params: params,
	}).then((res) => res)
/** 获取jdb权限 */
export const fetchGetJdbStatus = async (meetingMoid: string) =>
	requestMeeting<0 | 1>({
		url: `/jdb_status/${meetingMoid}`,
		method: 'get',
	}).then((res) => res)
